﻿using Microsoft.EntityFrameworkCore;
using System.IO;
using ZGLXM.Domain;

namespace ZGLXM.Infra
{
    public class BaseDataContext : DbContext
    {
        public BaseDataContext(DbContextOptions<BaseDataContext> options) : base(options)
        {
        }

        public DbSet<GoodInfo> GoodInfos { get; set; }

        public DbSet<User> Users { get; set; }

        public DbSet<Role> Roles { get; set; }

        public DbSet<Profession> Professions { get; set; }

        public DbSet<UserRole> UserRoles { get; set; }

        public DbSet<RoleProfession> RoleProfessions { get; set; }
    }
}
